﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion


#region Usings

using System.Windows;
using System.Windows.Media;

#endregion

namespace ScrumTable.UI.View.WinTouch.UserControls
{
    /// <summary>
    /// Interaction logic for StarControl.xaml
    /// </summary>
    public partial class StarControl
    {
        #region Properties

        #region FillBrush
        /// <summary>
        /// DependencyProperty for FillBrush.
        /// </summary>
        public static readonly DependencyProperty FillBrushProperty =
            DependencyProperty.Register("FillBrush",
                                        typeof(Brush),
                                        typeof(SurfaceDragDropListBox),
                                        new UIPropertyMetadata(Brushes.White));
        /// <summary>
        /// Gets or sets if the Brush to fill the star with.
        /// </summary>
        /// <value>Brush</value>
        public Brush FillBrush
        {
            get { return (Brush)GetValue(FillBrushProperty); }
            set { SetValue(FillBrushProperty, value); }
        }
        #endregion

        #region StrokeBrush
        /// <summary>
        /// DependencyProperty for StrokeBrush.
        /// </summary>
        public static readonly DependencyProperty StrokeBrushProperty =
            DependencyProperty.Register("StrokeBrush",
                                        typeof(Brush),
                                        typeof(SurfaceDragDropListBox),
                                        new UIPropertyMetadata(Brushes.Black));
        /// <summary>
        /// Gets or sets if the Brush to surround the star with.
        /// </summary>
        /// <value>Brush</value>
        public Brush StrokeBrush
        {
            get { return (Brush)GetValue(StrokeBrushProperty); }
            set { SetValue(StrokeBrushProperty, value); }
        }
        #endregion

        #region DisplayText
        /// <summary>
        /// DependencyProperty for DisplayText.
        /// </summary>
        public static readonly DependencyProperty DisplayTextProperty =
            DependencyProperty.Register("DisplayText",
                                        typeof(string),
                                        typeof(SurfaceDragDropListBox),
                                        new UIPropertyMetadata(""));
        /// <summary>
        /// Gets or sets if the text to be displayed in the star.
        /// </summary>
        /// <value>Text</value>
        public string DisplayText
        {
            get { return (string)GetValue(DisplayTextProperty); }
            set { SetValue(DisplayTextProperty, value); }
        }
        #endregion

        #endregion


        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="StarControl"/> class.
        /// </summary>
        public StarControl()
        {
            if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            {
                InitializeComponent();
            }
        }
        #endregion
    }
}
